package com.misweb.ibase.RestClient;

import com.baidu.aip.fl.Config;
import com.misweb.ibase.HttpBasicInterceptor;
import com.misweb.ibase.model.LoginResult;
import com.misweb.ibase.model.OperateBody;

import org.androidannotations.rest.spring.annotations.Accept;
import org.androidannotations.rest.spring.annotations.Body;
import org.androidannotations.rest.spring.annotations.Post;
import org.androidannotations.rest.spring.annotations.Rest;
import org.androidannotations.rest.spring.api.MediaType;
import org.androidannotations.rest.spring.api.RestClientErrorHandling;
import org.springframework.http.converter.StringHttpMessageConverter;
import org.springframework.http.converter.json.MappingJacksonHttpMessageConverter;

import java.util.List;

@Rest(rootUrl = Config.ServerUrl,
        converters = {MappingJacksonHttpMessageConverter.class,StringHttpMessageConverter.class},
        interceptors = { HttpBasicInterceptor.class })
public interface FaceAPI extends RestClientErrorHandling {

    @Post("/Api/Face")
    @Accept(MediaType.APPLICATION_JSON)
    LoginResult PersonVerify(@Body OperateBody operateBody);
}
